package com.boost.util;

import com.boost.handler.BizHandler;
import io.netty.channel.Channel;
import java.util.Set;

/**
 * @author Santa
 * @since 2020/3/25
 */
public class MapUtil {
    public static void removeChannel(Channel channel) {
        Set<String> keySet = BizHandler.maps.keySet();
        for (String key : keySet) {
            if(BizHandler.maps.get(key) == channel){
                BizHandler.maps.remove(key);
            }
        }
    }
}























